







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Determines if this bag is equal to another bag. This bag is equal to
otherBag if they contain the same items, each the
same number of times.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public bool IsEqualTo( OrderedBag<T> otherBag ) |
Visual Basic (Declaration) |
---|
Public Function IsEqualTo ( _ otherBag As OrderedBag(Of T) _ ) As Boolean |
Visual C++ |
---|
public: bool IsEqualTo ( OrderedBag<T>^ otherBag ) |
Parameters
- otherBag
- OrderedBag<(Of <T>)>
OrderedBag to compare to
Return Value
True if this bag is equal to otherBag, false otherwise.
Remarks
IsEqualTo is computed in time O(N), where N is the number of items in
this bag.
Exceptions
Exception | Condition |
---|---|
System..::InvalidOperationException | This bag and otherBag don't use the same method for comparing items. |
See Also
OrderedBag<(Of <T>)> Class
Wintellect.PowerCollections Namespace